<include file="Public:searchBar" />
<div class="pageContent">
    <include file="Public:panelBar" />
    <table class="table" width="100%" layouth="112">
        <thead>
            <tr>
                <th>
                    订单号
                </th>
                <th>
                    下单时间
                </th>
                <th>
                    收货人
                </th>
                <th>
                    总金额（元）
                </th>
                <th>
                    付款方式
                </th>
                <th>
                    订单状态
                </th>
                <th>
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            <volist name="datalist" id="vo">
                <tr id="list_{$vo[$mpk]}" target="sid_<?=$Think.MODULE_NAME ?>" rel="{$vo[$mpk]}">
                    <td>
                        <input type="hidden" name='{$mpk}s[]' value="{$vo[$mpk]}"/><a href="{:U('view?'.$mpk.'='.$vo[$mpk])}" title="订单:{$vo[$mpk]}" target="navTab">{$vo['code']}</a>
                    </td>
                    <td>
                        {$vo['happen']|date='Y-m-d H:i:s',###}
                    </td>
                    <td>
                        {$vo.consignee}
                    </td>
                    <td>
                        {$vo.final_fee}
                    </td>
                    <td>
                        {$sets['pay_type'][$vo['pay_type']]}
                    </td>
                    <td>
                        {$sets['order_progress'][$vo['progress']]}
                    </td>
                    <td>
                        <a href="{:U('view?'.$mpk.'='.$vo[$mpk])}" class="tbutton" title="订单:{$vo[$mpk]}" target="navTab" rel="Orderform_{$vo[$mpk]}">查看</a>
                        <switch name="vo.progress">
                            <case value="1">
                                <a href="{:U('turnoff')}" target="ajaxTodo" title="确定要关闭此交易吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">关闭交易</a>
                                <a href="{:U('del')}" target="ajaxTodo" title="确定要删除吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">删除</a>
                            </case>
                            <case value="2">
                                <a href="{:U('cancel')}" target="ajaxTodo" title="确定要退款吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">退款</a>
                            </case>
                            <case value="3">
                                <a href="{:U('cancel')}" target="ajaxTodo" title="确定要退款吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">退款</a>
                                <a href="{:U('complete')}" target="ajaxTodo" title="确定交易成功吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">交易成功</a>
                            </case>
                            <case value="5">
                                <a href="{:U('turnon')}" target="ajaxTodo" title="确定要RESET吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">RESET</a>
                                <a href="{:U('del')}" target="ajaxTodo" title="确定要删除吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">删除</a>
                            </case>
                            <case value="6">
                                <a href="{:U('turnoff')}" target="ajaxTodo" title="确定要关闭此交易吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">关闭交易</a>
                                <a href="{:U('complete')}" target="ajaxTodo" title="确定交易成功吗?" data="{$mpk}={$vo[$mpk]}" class="tbutton">交易成功</a>
                            </case>
                            <default/>
                        </switch>
                    </td>
                </tr>
            </volist>
        </tbody>
    </table><include file="Public:pageBar" />
</div>